﻿using QLBH.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QLBH.DAO
{
    class DAO_TPA
    {
          public DAO_TPA()
        {
            Connection_Sql.StartConnect();
        }
        public int Insert(TPA t)
        {
            IDictionary<string, string> d = new Dictionary<string, string>();
            d.Add("@ma_tpa", t.Ma_TPA);
            d.Add("@ten_tpa", t.Ten_TPA);
            String spInsert = "insert_TPA";
           return Connection_Sql.Insert(spInsert, d, true);
        }
    }
}
